import http from '../http';

class Setting {

  warehouseList = (status, page, num_per_page) => {
    const params = { status, page, num_per_page };
    return http.get('site/warehouses/show', { params });
  }; 

  warehouseSave = (dat) => {
    return http.post('site/warehouses/save', dat);
  }; 

  warehouseCreate = (dat) => {
    return http.post('site/warehouses/create', dat);
  }; 

} 

export default new Setting();